-
Notifications
You must be signed in to change notification settings - Fork 1.3k
linstor: set/unset allow-two-primaries and protocol on rc level #9560
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
linstor: set/unset allow-two-primaries and protocol on rc level #9560
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 4.18 #9560 +/- ##
============================================
- Coverage 12.27% 12.27% -0.01%
+ Complexity 9335 9333 -2
============================================
Files 4699 4699
Lines 414676 414691 +15
Branches 51544 50855 -689
============================================
- Hits 50891 50887 -4
- Misses 357460 357480 +20
+ Partials 6325 6324 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
DaanHoogland
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clgtm(, I´d factor out some code to extra methods though, for readability)
c82a92c to
f96aa82
Compare
Description
This changes the way how the linstor plugin sets the correct options to allow live-migration.
Before we set
allow-two-primariesoption on all resources and also don't enable protocol C for that brief time.Now we explicitly set
allow-two-primariesand protocol C on the specific resource connection used andafter the live migration is done those options get removed.
This allows live migration to work if you have set protocol A between 2 datacenters (e.g. DR site).
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
Live migration in a Linstor cluster with protocol C and A configured between nodes.
How did you try to break this feature and the system with this change?